
package com.hlingsoft.kkh.dao;

import com.hlingsoft.kkh.entity.MessageStatus;
import com.hlingsoft.kkh.entity.Province;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MessageStatusDao {

	/**
	 * 添加
	 * @param messageStatus
	 * @return
	 */
	public long addMessageStatus(MessageStatus messageStatus);

	/**
	 * 未读聊天记录的消息数
	 * @param appUserId
	 * @return
	 */
	public int getUnreadChatCount(@Param("appUserId")long appUserId);


	/**
	 * 未读通知数
	 * @param appUserId
	 * @return
	 */
	public int getUnreadNotificationCount(@Param("appUserId")long appUserId);


	/**
	 * 读取未读私信
	 * @param appUserId
	 * @return
	 */
	public int readChat(@Param("appUserId")long appUserId);


	/**
	 * 读取未读私信
	 * @param appUserId
	 * @return
	 */
	public int readNotification(@Param("appUserId")long appUserId);
}
